Since commit
e94de67b, this is called by a motion-event handler instead
of enter-event, so let's adjust the function name.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2097>
}
}
- // We override SwitcherList's _onItemEnter method to delay
+ // We override SwitcherList's _onItemMotion method to delay
// activation when the thumbnail list is open
- _onItemEnter(item) {
+ _onItemMotion(item) {
const index = this._items.indexOf(item);
if (this._mouseTimeOutId != 0)
this._list.add_actor(bbox);
bbox.connect('clicked', () => this._onItemClicked(bbox));
- bbox.connect('motion-event', () => this._onItemEnter(bbox));
+ bbox.connect('motion-event', () => this._onItemMotion(bbox));
bbox.label_actor = label;
this._itemActivated(this._items.indexOf(item));
}
- _onItemEnter(item) {
+ _onItemMotion(item) {
// Avoid reentrancy
if (item !== this._items[this._highlighted])
this._itemEntered(this._items.indexOf(item));